/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc. 
 *  
 * SPDX-License-Identifier: Apache-2.0.
 * 
 * @Date: 2021-09-01 15:25:48
 * @LastEditTime: 2021-09-01 15:32:52
 * @Description:  This files is for 
 * 
 * @Modify History: 
 *  Ver   Who        Date         Changes
 * ----- ------     --------    --------------------------------------
 */
#include <iostream>
#include "../elfio/elfio_dump.hpp"

using namespace ELFIO;

int ElfIoDump( const char *elf_file )
{
    elfio reader;

    if ( !reader.load( elf_file ) ) {
        printf( "File %s is not found or it is not an ELF file\n", elf_file );
        return 1;
    }

    dump::header( std::cout, reader );

    return 0;
}